package com.pdd.mall.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 修改密码参数
 */
@Data
public class UpdatePasswordParam {
    
    @NotEmpty(message = "旧密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20之间")
    private String oldPassword;
    
    @NotEmpty(message = "新密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20之间")
    private String newPassword;
}
